home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / wnos / wn941101 / files.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-10  |  2.7 KB  |  74 lines

  1. #ifndef    _FILES_H
  2. #define    _FILES_H
  3.  
  4. #ifndef _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. /* Permission bits in FTPUSERS file */
  9. #define    FTP_READ        1        /* Read files */
  10. #define    FTP_CREATE        2        /* Create new files */
  11. #define    FTP_WRITE        4        /* Overwrite or delete existing files */
  12. #define AX25_CMD        8        /* AX.25 gateway operation allowed */
  13. #define TELNET_CMD        16        /* Telnet gateway operation allowed */
  14. #define NETROM_CMD        32        /* NET/ROM gateway operation allowed */
  15. #define SYSOP_CMD        64        /* Remote sysop access allowed */
  16. #define EXCLUDED_CMD    128        /* This user is banned from the BBS */
  17. #define PPP_ACCESS_PRIV    0x0100    /* Priv bit for PPP connection */
  18. #define PPP_PWD_LOOKUP    0x0200    /* Priv bit for peerID/pass lookup */
  19.  
  20.  
  21. /* External definitions for configuration-dependent file names set in
  22.  * files.c
  23.  */
  24. extern char *Startup;            /* Initialization file */
  25. extern char *Userfile;            /* Authorized FTP users and passwords */
  26. extern char *Maillog;            /* mail log */
  27. extern char *Mailspool;            /* Incoming mail */
  28. extern char *Mailqdir;            /* Outgoing mail spool */
  29. extern char *Mailqueue;            /* Outgoing mail work files */
  30. extern char *Routeqdir;            /* queue for router */
  31. extern char *Alias;                /* the alias file */
  32. extern char *Dfile;                /* Domain cache */
  33. extern char *Fdir;                /* Finger info directory */
  34. extern char *Arealist;            /* List of message areas */
  35. extern char *Helpdir;            /* Mailbox help file directory */
  36. extern char *Rewritefile;        /* Address rewrite file */
  37. extern char *Newsdir;            /* News messages and NNTP data */
  38. extern char *Signature;            /* Mail signature file directory */
  39. extern char *Forwardfile;        /* Mail forwarding file */
  40. extern char *Historyfile;        /* Message ID history file */
  41. extern char *Popusers;            /* Authorized POP users and passwords */
  42. extern char *Iproutefile;
  43. extern char *Iproutetmp;
  44. extern char *Arproutefile;
  45. extern char *Arproutetmp;
  46. extern char *Axroutefile;
  47. extern char *Axroutetmp;
  48. extern char *Hostfile;
  49. extern char *Nrroutefile;
  50. extern char *Nrroutetmp;
  51. extern char *Historyfile;
  52. extern char *News;
  53. extern char *Active;
  54. extern char *Pointer;
  55. extern char *History;
  56. extern char *Forward;
  57. extern char *Poll;
  58. extern char *NInfo;
  59. extern char *Nhelp;
  60. extern char *Mboxlog;
  61. extern char *Convers;
  62. extern char *Bbsfile;
  63.  
  64. void initroot __ARGS((char *root));
  65. char *rootdircat __ARGS((char *filename));
  66. int userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore));
  67. char *userlookup __ARGS((char *username, char **password, char **directory,
  68.             int *permission, int32 *ip_address));
  69.  
  70. FILE *open_file __ARGS((char *name,char *mode,int s,int t));
  71. FILE *temp_file __ARGS((int s,int t));
  72.  
  73. #endif    /* _FILES_H */
  74.